package com.xiaoy.core.database.form.server;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiaoy.core.database.form.dao.FieldDao;
import com.xiaoy.core.database.form.entity.Field;

@Service
public class FieldService {
	
	@Resource
	private FieldDao fieldDao;
	

	public void save (Field f) {
		fieldDao.save(f);
	}
	
	public List<Field>getFieldsByBusinessId (long businessId) {
		
		return fieldDao.findBy("businessId", businessId);
	}
	
}


